import request from '@/utils/request'

// 获取门店列表数据
export function list(token,data){
  return request({
    url: 'store/index/getSelectSalesroom',
    method: 'post',
    params: {token},
    data
  })
}

// 添加门店
export function add(token,storeData){
  return request({
    url: 'store/index/addSalesroom',
    method: 'post',
    params: {token},
    data: storeData
  })
}

// 编辑门店
export function edit(token,storeData){
  console.log(storeData)
  return request({
    url: 'store/index/editSalesroom',
    method: 'post',
    params: {token},
    data: storeData

  })
}

// 删除门店
export function del(token,data) {
  return request({
    url: 'store/index/deleteSalesroom',
    method: 'post',
    params: {token},
    data
  })
}
